<?php
namespace Admin\Controller;
use Think\Controller;
class DeliveryController extends Controller { 
	/**
	 *测试快递员数据列表
	 * @param string 用户名post.name
	 * @param string 用户密码post.pwd	 
	 * @param string 用户手机post.phone	 
	 * @param string 用户邮箱post.email	 
	 * @return  json
	 */ 
	public function displayList(){ 
		$array						=	array();
		$array[0]['id']				=	'1';
		$array[0]['name']			=	'zahngsan';
		$array[0]['realName']		=	'张三';
		$array[0]['idNum']			=	'371122199007202270';
		$array[0]['delivery_num']	=	'A123456';
		$array[0]['phone']			=	'13269706193';
		$array[0]['status']			=	'启用';
		$array[0]['level']			=	'v1';
		//$array[0]['registerTime']	=	'2017-03-08';
		//id:"1",name:"Desktop Computer",note:"note",stock:"Yes",ship:"FedEx", sdate:"2007-12-03"
		echo json_encode($array);
    }
/**
	 *测试快递员数据列表
	 * @param string 用户名post.name
	 * @param string 用户密码post.pwd	 
	 * @param string 用户手机post.phone	 
	 * @param string 用户邮箱post.email	 
	 * @return  json
	 */ 
	public function editDelivery(){
		$name	= I('post.name');
		echo json_encode($array);
    }
	public function editRealName(){
		$name	= I('post.name');
		echo json_encode($name);
    }

}